package hoyo.zqy.pet.service;

import hoyo.zqy.basic.service.IBaseService;
import hoyo.zqy.basic.util.AjaxResult;
import hoyo.zqy.basic.util.PageList;
import hoyo.zqy.pet.domain.SearchMasterMsg;
import hoyo.zqy.pet.dto.OrderDto;
import hoyo.zqy.pet.query.SearchMasterMsgQuery;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zqy
 * @since 2022-11-17
 */
public interface ISearchMasterMsgService extends IBaseService<SearchMasterMsg> {

    /**
     * 寻主消息
     * @param searchMasterMsg
     * @return
     */
    AjaxResult publish(SearchMasterMsg searchMasterMsg,HttpServletRequest request);

    PageList<SearchMasterMsg> user(SearchMasterMsgQuery query, HttpServletRequest request);

    PageList<SearchMasterMsg> toHandle(SearchMasterMsgQuery query, HttpServletRequest request);

    PageList<SearchMasterMsg> finish(SearchMasterMsgQuery query);

    PageList<SearchMasterMsg> toSearchMasterPool(SearchMasterMsgQuery query);

    /**
     * 拒单
     * @param id
     */
    void reject(Long id);

    /**
     * 接单
     * @param
     */
    void accept(OrderDto orderDto);
}
